package org.bling.star.common.command;

import org.bling.star.common.connect.CommandStreamKey;

public class TalkingCommand extends ClientCommand {
    private static final long serialVersionUID = 7610178555521786057L;
    private String secretKey;
    private String message;

    public TalkingCommand() {
    }

    public String getSecretKey() {
        return this.secretKey;
    }

    public String getMessage() {
        return this.message;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof TalkingCommand)) return false;
        final TalkingCommand other = (TalkingCommand) o;
        if (!other.canEqual(this)) return false;
        final Object this$secretKey = this.getSecretKey();
        final Object other$secretKey = other.getSecretKey();
        if (this$secretKey == null ? other$secretKey != null : !this$secretKey.equals(other$secretKey)) return false;
        final Object this$message = this.getMessage();
        final Object other$message = other.getMessage();
        return this$message == null ? other$message == null : this$message.equals(other$message);
    }

    protected boolean canEqual(final Object other) {
        return other instanceof TalkingCommand;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $secretKey = this.getSecretKey();
        result = result * PRIME + ($secretKey == null ? 43 : $secretKey.hashCode());
        final Object $message = this.getMessage();
        result = result * PRIME + ($message == null ? 43 : $message.hashCode());
        return result;
    }

    public String toString() {
        return "TalkingCommand(secretKey=" + this.getSecretKey() + ", message=" + this.getMessage() + ")";
    }
}
